package com.dianshang.service.goods;

import com.dianshang.entity.PageResult;
import com.dianshang.pojo.goods.Spec;

import java.util.List;
import java.util.Map;

public interface SpecService {

     List<Spec> findAll();

     PageResult<Spec> findPage(Integer page, Integer size);

     List<Spec> findList(Map<String, Object> searchMap);

     PageResult<Spec> findPage(Map<String, Object> searchMap, Integer page, Integer size);

     Spec findById(Integer id);

     void add(Spec spec);

     void update(Spec spec);

     void delete(Integer id);
}